package cn.wcy.design_patterns.test.Controller.demo1;

import org.springframework.stereotype.Component;

@Component
class LiSiHandler extends AbstractHandler {

    @Override
    public String AAA() {
        // 业务逻辑A
        System.out.println("李四完成了AAA任务");
        return "李四完成了AAA任务";
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        Factory.register("李四", this);
    }
}